package com.zzx.service.componemt;

import com.alibaba.dubbo.config.annotation.Reference;
import com.alibaba.dubbo.config.annotation.Service;
import com.zzx.common.dal.bean.OrderInfoDO;
import com.zzx.common.dal.repository.OrderRepository;
import com.zzx.common.service.component.OrderComponent;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;


@Component
@Service(interfaceClass = OrderComponent.class)
@Slf4j
public class OrderComponentImpl implements OrderComponent {

    @Reference
    private OrderRepository orderRepository;

    public OrderInfoDO getInfo(String id) {
        log.info("入参id：{}",id);
        return (orderRepository.getOrderInfo(id));
    }

}
